<?php
namespace Backoffice\Form;

use Zend\Form\Fieldset;

class ProduitDeleteFieldset extends Fieldset
{
    public function init()
    {   
        $em = $this->getFormFactory()->getFormElementManager()->getServiceLocator()->get('doctrine.entitymanager.orm_default');
        $this->setHydrator(new \DoctrineModule\Stdlib\Hydrator\DoctrineObject($em, 'Backoffice\Model\Entity\Produit'));
        
        $this->add(array(
            'type' => 'submit',
            'name' => 'submit',
            'options' => array('label' => 'Valider'),
            'attributes' => array('class' => 'btn btn-success'),
        ));
    }
}
